package com.example.concurrent.singleton4;

public final class Singleton {
	private Singleton() {}
	//静态内部类
	//懒汉式的：类加载本身就是懒加载的。
	private static class LazyHolder{
		static final Singleton INSTANCE = new Singleton();
	}
	public static Singleton getInstance() {
		return LazyHolder.INSTANCE;
	}
}
